﻿namespace WMS6.Services
{
    using System;
    using System.ServiceModel;
    using System.ServiceModel.Activation;
    using WMS6.BLL;
    using WMS6.Common;
    using WMS6.DataEntity;

    [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerCall), AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]
    public class PrintReportService4AX : IPrintReportService4AX
    {
        public string GetPrintExpressDelivery(string orderID, PrintReportsInfo printReportsInfo)
        {
            try
            {
                PrintReport4AXBLL printReport4AXBLL = new PrintReport4AXBLL(printReportsInfo);
                return printReport4AXBLL.GetPrintExpressDelivery(orderID);
            }
            catch (Exception ex)
            {
                CommonErrorHandler.ErrorTypeExchange(ex, "PrintReportService异常");
            }
            return "";
        }

        public string GetPrintHandoverNote(string orderID, PrintReportsInfo printReportsInfo)
        {
            try
            {
                PrintReport4AXBLL printReport4AXBLL = new PrintReport4AXBLL(printReportsInfo);
                return printReport4AXBLL.GetPrintHandoverNote(orderID);
            }
            catch (Exception ex)
            {
                CommonErrorHandler.ErrorTypeExchange(ex, "PrintReportService异常");
            }
            return "";
        }

        public string GetPrintShippingOrderList(string orderID, PrintReportsInfo printReportsInfo)
        {
            try
            {
                PrintReport4AXBLL printReport4AXBLL = new PrintReport4AXBLL(printReportsInfo);
                return printReport4AXBLL.GetPrintShippingOrderList(orderID);
            }
            catch (Exception ex)
            {
                CommonErrorHandler.ErrorTypeExchange(ex, "PrintReportService异常");
            }
            return "";
        }
    }
}

